<html><head><title>Graphical representation of object 'boot'</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="Rchm.css">
</head>
<body>

<table width="100%"><tr><td>hist.boot(modtools)</td><td align="right">R Documentation</td></tr></table><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="keyword" value="R:   hist.boot">
<param name="keyword" value=" Graphical representation of object 'boot'">
</object>


<h2>Graphical representation of object 'boot'</h2>


<h3>Description</h3>

<p>
~~ A concise (1-5 lines) description of what the function does. ~~
</p>


<h3>Usage</h3>

<pre>
## S3 method for class 'boot':
hist(x, nclass = 10, coeff = 1, mfrow = NULL, which.par = 1:length(x$t0),
sub = NULL, ...)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
An object of class '"boot"' containing the output of a bootstrap calculation.</td></tr>
<tr valign="top"><td><code>nclass</code></td>
<td>
numeric (integer).'nclass'is equivalent to 'breaks' for a scalar or character argument.</td></tr>
<tr valign="top"><td><code>coeff</code></td>
<td>
~~Describe <code>coeff</code> here~~ </td></tr>
<tr valign="top"><td><code>mfrow</code></td>
<td>
~~Describe <code>mfrow</code> here~~ </td></tr>
<tr valign="top"><td><code>which.par</code></td>
<td>
~~Describe <code>which.par</code> here~~ </td></tr>
<tr valign="top"><td><code>sub</code></td>
<td>
~~Describe <code>sub</code> here~~ </td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
further graphical parameters passed to 'plot.histogram'</td></tr>
</table>

<h3>Details</h3>

<p>
~~ If necessary, more details than the description above ~~
</p>


<h3>Value</h3>

<p>
~Describe the value returned
If it is a LIST, use
</p>
<table summary="R argblock">
<tr valign="top"><td><code>comp1 </code></td>
<td>
Description of 'comp1'</td></tr>
<tr valign="top"><td><code>comp2 </code></td>
<td>
Description of 'comp2'</td></tr>
</table>
<p>

...</p>

<h3>Note</h3>

<p>
~~further notes~~
</p>


<h3>References</h3>

<p>
~put references to the literature/web site here ~
</p>


<h3>See Also</h3>

<p>
~~objects to See Also as <code><a onclick="findlink('utils', 'help.html')" style="text-decoration: underline; color: blue; cursor: hand">help</a></code>, ~~~
</p>


<h3>Examples</h3>

<pre>
##---- Should be DIRECTLY executable !! ----
##-- ==&gt;  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, nclass = 10, coeff = 1, mfrow = NULL, which.par = 1:length(x$t0), 
    sub = NULL, ...) 
{
    if (!inherits(x, "boot")) 
        stop("non convenient argument")
    opar &lt;- par(ask = par("ask"), mfrow = par("mfrow"))
    on.exit(par(opar))
    if (is.null(mfrow)) 
        mfrow &lt;- n2mfrow(length(which.par))
    par(mfrow = mfrow)
    if (length(which.par) &gt; prod(mfrow)) 
        par(ask = TRUE)
    for (i in which.par) {
        if (is.null(sub)) 
            sub &lt;- paste("t", i, "*", sep = "")
        obs &lt;- x$t0[i]
        sim &lt;- x$t[, i]
        r0 &lt;- c(sim, obs)
        h0 &lt;- hist(sim, plot = FALSE, nclass = nclass)
        y0 &lt;- max(h0$counts)
        l0 &lt;- max(sim) - min(sim)
        w0 &lt;- l0/(log(length(sim), base = 2) + 1)
        w0 &lt;- w0 * coeff
        xlim0 &lt;- range(r0) + c(-w0, w0)
        hist(sim, plot = TRUE, nclass = nclass, xlim = xlim0, 
            col = grey(0.8), main = sub, ...)
        lines(c(obs, obs), c(y0/2, 0))
        points(obs, y0/2, pch = 18, cex = 2)
    }
    invisible()
  }
</pre>

<script Language="JScript">
function findlink(pkg, fn) {
var Y, link;
Y = location.href.lastIndexOf("\\") + 1;
link = location.href.substring(0, Y);
link = link + "../../" + pkg + "/chtml/" + pkg + ".chm::/" + fn;
location.href = link;
}
</script>


<hr><div align="center">[Package <em>modtools</em> version 1.0-7 <a href="00Index.html">Index</a>]</div>

</body></html>
